package com.solution.framework.util;

/**
 * Created with IntelliJ IDEA.
 * Busline: sunguangzhu
 * Date: 13-7-26
 * Time: 下午3:04
 * To change this template use File | Settings | File Templates.
 */
public class AjaxDataDto<T> {
    private boolean success = true;
    private T data;

    public AjaxDataDto() {
    }

    public AjaxDataDto(boolean success, T data) {
        this.success = success;
        this.data = data;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String toString() {
        return JsonUtil.transformObjectToString(this);
    }
}
